<template>
  <HelloWorld msg="Hello Vue 3 + Vite" />
</template>

<script setup>
// https://vuejs.org/api/sfc-script-setup.html#script-setup
import { onMounted } from 'vue'
import HelloWorld from './components/HelloWorld.vue'

// 设置平台--保存当前前端运行环境是浏览器，还是客户端
const userAgent = navigator.userAgent.toLowerCase()
if (userAgent.indexOf(' electron/') > -1) {
  localStorage.setItem('platform', 'Electron')
} else {
  localStorage.setItem('platform', 'Browser')
}
onMounted(() => {})
</script>
<style lang="less"></style>
